type ExpressCompanyType = { [key: string]: { code: string; name: string } }
const ExpressCompany: ExpressCompanyType = {
  SHUNFENG: { code: 'shunfeng', name: '顺丰' },
  EMS: { code: 'ems', name: 'EMS' },
  YOUZHENGGUONEI: { code: 'youzhengguonei', name: '邮政包裹' },
  HUITONGKUAIDI: { code: 'huitongkuaidi', name: '百世汇通' },
  SHENTONG: { code: 'shentong', name: '申通' },
  ZHONGTONG: { code: 'zhongtong', name: '中通' },
  YUANTONG: { code: 'yuantong', name: '圆通' },
  GUOTONGKUAIDI: { code: 'guotongkuaidi', name: '国通' },
  YUNDA: { code: 'yunda', name: '韵达' },
  TIANTIAN: { code: 'tiantian', name: '天天' },
  YOUSHUWULIU: { code: 'youshuwuliu', name: '优速' },
  JD: { code: 'jd', name: '京东' },
  ZHAIJISONG: { code: 'zhaijisong', name: '宅急送' },
}

const expressCompanyArr = () => {
  const arr = []
  const keys = Object.keys(ExpressCompany)
  keys.forEach((key) => {
    arr.push({ code: ExpressCompany[key].code, name: ExpressCompany[key].name })
  })
}

export { ExpressCompany, expressCompanyArr }
